package com.cxh.enums;

import lombok.Getter;

@Getter
public enum ExceptionInfoEnum {
    PARAM_ERROR(1,"参数不合法!!"),
    CAPTCHA_ERROR(5,"验证码错误!!"),
    USER_REGISTER_ERROR(31,"注册账号失败!!"),
    USER_USERNAME_ERROR(32,"用户名不存在!!"),
    USER_PASSWORD_ERROR(33,"密码错误!!"),
    ITEM_ADD_ERROR(61,"添加商品信息失败!!"),
    ITEM_DELETE_ERROR(62,"删除商品失败"),
    PIC_GREATER(81,"图片大小过大!!"),
    PIC_TYPE_ERROR(82,"图片类型不正确!!"),
    PIC_BREAK(83,"图片已损坏!!"),
    ITEM_SELECTONE_ERROR(63,"查询单个实体信息失败！"),
    ITEM_UPDATEONE_ERROR(64,"修改单个实体失败！");

    private Integer code;

    private String msg;

    ExceptionInfoEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
